/*
 * @Descripttion: 核酸宝项目前端
 * @version: 
 * @Author: 杜宇轩
 * @Date: 2022-05-22 05:23:33
 * @LastEditors: 杜宇轩
 * @LastEditTime: 2022-05-22 06:23:48
 */
import Vue from 'vue';
const prefix = '/natms1/approval/volunteerApply/';

/**
 * 审批员查看志愿者申请
 * request: {}
 */
 export const approverCheckApply = () => {
  return Vue.$http({
    url: prefix + 'retrieve',
    method: 'get'
  });
};

/**
 * 审批员处理志愿者申请
 * request: {
 *  handleApplications: [
 *    {
 *      id: 1, // 申请信息唯一id
 *      userId: "", // 用户唯一id
 *      state: "" // 处理的申请状态
 *    }
 *  ]
 * }
 */
 export const approverHandleApply = (data) => {
  return Vue.$http({
    url: prefix + 'handle',
    method: 'post',
    data: {
      handleApplications: data
    }
  });
};
